﻿using System;
using System.Collections.Generic;

namespace MessagePack.Formatters
{
	// Token: 0x0200001F RID: 31
	public class GenericDictionaryFormatter<TKey, TValue, TDictionary> : DictionaryFormatterBase<TKey, TValue, TDictionary, TDictionary> where TDictionary : IDictionary<TKey, TValue>, new()
	{
		// Token: 0x06000074 RID: 116 RVA: 0x00003020 File Offset: 0x00001420
		protected override void Add(TDictionary collection, int index, TKey key, TValue value)
		{
			collection.Add(key, value);
		}

		// Token: 0x06000075 RID: 117 RVA: 0x00003032 File Offset: 0x00001432
		protected override TDictionary Complete(TDictionary intermediateCollection)
		{
			return intermediateCollection;
		}

		// Token: 0x06000076 RID: 118 RVA: 0x00003035 File Offset: 0x00001435
		protected override TDictionary Create(int count)
		{
			return Activator.CreateInstance<TDictionary>();
		}
	}
}
